package com.level2app.di.retrofit;

import com.level2app.bean.AddressListBean;
import com.level2app.bean.CheckReferralCodeBean;
import com.level2app.bean.MessageBean;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiConstants {

    public static boolean isRelease = false;

    String BASE_SERVER = "https://api.atlantis.level2app.com/";
//    String BASE_SERVER = "https://c-app-api.yikaiye.com";

     //发送登录邮件
    @POST("user/send_login_mail/")
    Flowable<MessageBean> sendLoginMail(@Body RequestBody requestBody);

    @POST("user/send_invitation_mail/")
    Flowable<MessageBean> sendRegisterMail(@Body RequestBody requestBody);

    @GET("address/")
    Flowable<AddressListBean> getAddress(@Query("limit") String limit, @Query("offset") String offset);

    //验证邀请码
    @POST("pre-signup/check-referral-code/")
    Flowable<CheckReferralCodeBean> checkReferralCode(@Body RequestBody requestBody);
}